﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using AutoProcessService.Biz;

namespace AutoProcessService
{
    public partial class AutoProcess : ServiceBase
    {
        public AutoProcess()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            LogHelper.Write(CommonLogger.Service, LogLevel.Info, "服务已启动......");
            Core.OnStart();
        }

        protected override void OnStop()
        {
            LogHelper.Write(CommonLogger.Service, LogLevel.Info, "服务已停止......");
        }
    }
}
